package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbOperationLog对象", description="操作日志表")
public class TbOperationLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "operation_log_id", type = IdType.AUTO)
    private Integer operationLogId;

    @ApiModelProperty(value = "日志描述")
    private String logDescription;

    @ApiModelProperty(value = "方法参数")
    private String actionArgs;

    @ApiModelProperty(value = "用户主键")
    private String userNo;

    @ApiModelProperty(value = "类名称")
    private String className;

    @ApiModelProperty(value = "方法名称")
    private String methodName;

    private String ip;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "模块名称")
    private String modelName;

    @ApiModelProperty(value = "操作")
    private String action;

    @ApiModelProperty(value = "是否成功 1:成功 2异常")
    private Integer succeed;

    @ApiModelProperty(value = "异常堆栈信息")
    private String message;


}
